package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoCollectDoor;
import com.muyu.danmo.mapper.DanmoCollectDoorMapper;
import com.muyu.danmo.service.IDanmoCollectDoorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 拾贝门头照Service业务层处理
 *
 * @author yangle
 * @date 2024-10-30
 */
@Service
public class DanmoCollectDoorServiceImpl implements IDanmoCollectDoorService
{
    @Autowired
    private DanmoCollectDoorMapper danmoCollectDoorMapper;

    /**
     * 查询拾贝门头照
     *
     * @param id 拾贝门头照主键
     * @return 拾贝门头照
     */
    @Override
    public DanmoCollectDoor selectDanmoCollectDoorById(Long id)
    {
        return danmoCollectDoorMapper.selectDanmoCollectDoorById(id);
    }

    /**
     * 查询拾贝门头照列表
     *
     * @param danmoCollectDoor 拾贝门头照
     * @return 拾贝门头照
     */
    @Override
    public List<DanmoCollectDoor> selectDanmoCollectDoorList(DanmoCollectDoor danmoCollectDoor)
    {
        return danmoCollectDoorMapper.selectDanmoCollectDoorList(danmoCollectDoor);
    }

    /**
     * 新增拾贝门头照
     *
     * @param danmoCollectDoor 拾贝门头照
     * @return 结果
     */
    @Override
    public int insertDanmoCollectDoor(DanmoCollectDoor danmoCollectDoor)
    {
        return danmoCollectDoorMapper.insertDanmoCollectDoor(danmoCollectDoor);
    }

    /**
     * 修改拾贝门头照
     *
     * @param danmoCollectDoor 拾贝门头照
     * @return 结果
     */
    @Override
    public int updateDanmoCollectDoor(DanmoCollectDoor danmoCollectDoor)
    {
        return danmoCollectDoorMapper.updateDanmoCollectDoor(danmoCollectDoor);
    }

    /**
     * 批量删除拾贝门头照
     *
     * @param ids 需要删除的拾贝门头照主键
     * @return 结果
     */
    @Override
    public int deleteDanmoCollectDoorByIds(Long[] ids)
    {
        return danmoCollectDoorMapper.deleteDanmoCollectDoorByIds(ids);
    }

    /**
     * 删除拾贝门头照信息
     *
     * @param id 拾贝门头照主键
     * @return 结果
     */
    @Override
    public int deleteDanmoCollectDoorById(Long id)
    {
        return danmoCollectDoorMapper.deleteDanmoCollectDoorById(id);
    }
}
